using Microsoft.AspNetCore.Mvc;
using zhwy.saas.api.Models;
using zhwy.saas.api.Services.Sinterface;

namespace zhwy.saas.api.Controllers.V2
{
    [ApiController]
    [ApiVersion("2.0")]
    [Route("api/v{version:apiVersion}/[controller]")]
    public class AuthController : ControllerBase
    {
        private readonly ITokenService _tokenService;

        public AuthController(ITokenService tokenService)
        {
            _tokenService = tokenService;
        }

        [HttpPost("login")]
        public async Task<ApiResponseModel<LoginResponseV2>> Login([FromBody] LoginRequestV2 request)
        {
            // V2 版本的新实现...
            return new ApiResponseModel<LoginResponseV2>()
            {
                Code = 200,
                Data = new LoginResponseV2(),
                Message = "成功",
                Success = true,
            };
        }
    }

    public class LoginRequestV2
    {
    }

    public class LoginResponseV2
    {
    }
}